# -*- coding: utf-8 -*-
# @File     : permissions.py
# @Author   : bingjia
# @Time     : 2020/8/11 15:33
# @Desc     :
from operation.base.api.permissions import IsSuperUser
from operation.base.api.permissions import BasePermission
from operation.base.api.permissions import IsAuthenticated

from operation.permissions.permissions import IsProjectAdmin


class DefectPermission(BasePermission):
    """
    检测权限
    """
    # 全局权限
    global_perms = None
    enough_perms = IsSuperUser()

    # 增删改查
    start_check_perms = IsAuthenticated()


class CheckConfigAdminPermission(BasePermission):
    pass


class CheckAdminPermission(BasePermission):
    pass
